import axios from './network'

//    获得客户列表28
function getClientList(data){
  return axios({
    url:'mobileadmin/order',
    method:"POST",
    data
  })
}

// 获取订单列表详情
function getOrderDetails(data){
  return axios({
    url:'mobileadmin/order_info',
    method:"POST",
    data
  })
}
// 退回&通过
function sendBack(data){
  return axios({
    url:'mobileadmin/order_by',
    method:"POST",
    data
  })
}
//取消订单
function sendCancel(data){
  return axios({
    url:"mobileadmin/be_assigned",
    method:"POST",
    data
  })
}
// 司机分配
function getDriverAllocation(data){
  return axios({
    url:"mobileadmin/be_assigned",
    method:"POST",
    data
  })
}
// 分配到某个司机
function sendDistribution(data){
  return axios({
    url:"mobileadmin/distribution_do",
    method:"POST",
    data
  })
}
// 重新分配
function sendToBeAssigned(data){
  return axios({
    url:"mobileadmin/to_be_assigned",
    method:"POST",
    data
  })
}

// 司机详情请求
function getDriverImg(data){
  return axios({
    url:"mobileadmin/driver_img",
    method:"POST",
    data
  })
}

//  查看单据信息
function showRemarks(data){
  return axios({
    url:"mobileadmin/show_remarks",
    method:"POST",
    data
  })
}
// 修改单据信息
function showRemarksEdit(data){
  return axios({
    url:"mobileadmin/show_remarks_edit",
    method:"POST",
    data
  })
}
// 获取吨数信息
function request(data){
  return axios({
    url:"mobileadmin/order_remarks",
    method:"POST",
    data
  })
}

// 上传单据
function processForm(data){
  return axios({
    url:"mobileadmin/order_remarks_process",
    method:"POST",
    data
  })
}
function orderTime(data){
  return axios({
    url:"mobileadmin/order_time",
    method:"POST",
    data
  })
}
export{
  getClientList,
  
  getOrderDetails,
  sendBack,
  sendCancel,
  getDriverAllocation,
  sendDistribution,
  sendToBeAssigned,
  getDriverImg,
  showRemarks,
  showRemarksEdit,
  request,
  processForm,
  orderTime
}